<nz-row>
  <div nz-col nzSpan="3">请选择环境</div>
  <div nz-col nzSpan="21">
    <nz-radio-group [(ngModel)]="envId" [nzButtonStyle]="'solid'" (ngModelChange)="changeEnvironment($event)">
      <label *ngFor="let item of list" nz-radio-button [nzValue]="item.id">{{item.description}}</label>
    </nz-radio-group>
  </div>
</nz-row>
<nz-row *ngIf="model" class="mt10">
  <div nz-col nzSpan="3">请选择数据表</div>
  <div nz-col nzSpan="21">
    <nz-radio-group [(ngModel)]="tableId" [nzButtonStyle]="'solid'">
      <label *ngFor="let item of model.tables" nz-radio-button [nzValue]="item.id">{{item.name}}</label>
    </nz-radio-group>
  </div>
</nz-row>

<nz-row>
  <button nz-button nzType="primary" class="ml10" (click)="diff()" [disabled]="!envId || !tableId"
          [nzLoading]="diffLoading">对比
  </button>
  <button nz-button nzType="danger" class="ml10" (click)="update()" [disabled]="!envId || !tableId"
          [nzLoading]="executeLoading">更新
  </button>
</nz-row>
<nz-row class="mt10">
  <textarea rows="15" nz-input [(ngModel)]="sql"></textarea>
</nz-row>
